$(function(){
    $('#member_datagrid').datagrid({
        //url:'datagrid_data.json',
        data: [
            {id:'1', saleSn:'1356116',saleDate:'2018-6-10',saleName:'朱智鹏',saleAmount:'10000',memberNumber:'1001',saleItemState:'已审核'},
            {id:'2', saleSn:'336561',saleDate:'2018-7-10',saleName:'李芳',saleAmount:'20000',memberNumber:'1002',saleItemState:'未审核'}


        ],
        columns:[[
            {field:'id',title:'ID',width:100},
            {field:'saleSn',title:'订单编号',width:100},
            {field:'saleDate',title:'订单日期',width:100,align:'right'},
            {field:'saleName',title:'销售人员',width:100,align:'right'},
            {field:'saleAmount',title:'订单总额',width:100,align:'right'},
            {field:'memberNumber',title:'会员编号',width:100,align:'right'},
            {field:'saleItemState',title:'订单状态',width:100,align:'right'}
        ]],
        fitColumns:true,
        rownumbers:true,
        singleSelect:true,
        pagination:true
    });

})